package cn.hackcloud.concurrency.eda.chat;

import cn.hackcloud.concurrency.eda.AsyncChannel;
import cn.hackcloud.concurrency.eda.Event;

/**
 * 用户下线的Event
 */
public class UserOfflineEventChannel extends AsyncChannel {
    @Override
    protected void handle(Event message) {
        UserOfflineEvent event = (UserOfflineEvent) message;
        System.out.println("The User " + event.getUser().getName() + " is offline.");
    }
}
